PREFIX=/usr

all:
	mkdir build
	make qxmms
	make qxmmsd
qxmms:
	gcc src/qxmms.c src/queryfunc.c src/cmdfunc.c -o build/qxmms -I/usr/include/glib-1.2 -I/usr/lib/glib/include -lxmms
qxmmsd:
	gcc src/qxmmsd.c src/queryfunc.c src/cmdfunc.c -o build/qxmmsd -I/usr/include/glib-1.2 -I/usr/lib/glib/include -lxmms
clean:
	@rm -rf build
install:
	chown root build/*
	chmod 755 build/*
	cp build/* $(PREFIX)/bin
